<template>
  <div class="root">
    <router-view />
    <div class="tabbar">
      <router-link to="/index/home">首页</router-link>
      <router-link to="/index/tuan">爆爆团</router-link>
      <router-link to="/index/order">订单</router-link>
      <router-link to="/index/mine">我的</router-link>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
input,
button {
  border: 0;
  outline: none;
}
.root {
  width: 360px;
  height: 700px;
  margin: 60px auto;
  border: 1px solid #ccc;
  border-radius: 5px;
  position: relative;
}
.tabbar {
  width: 100%;
  height: 50px;
  border-top: 1px solid #ccc;
  position: absolute;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  background-color: azure;
  line-height: 50px;
}
a {
  text-decoration: none;
  color: black;
}
a.router-link-active {
  color: blue;
}
</style>